package com.khh.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Repository;

/**
 * Created by webrx on 2017-09-08.
 */
@Data @NoArgsConstructor
@Repository("teacher")
public class Teacher {
    private int id;
    private String name;
    private Address address;


    public void init(){

        System.out.println("init");
    }
    public void end(){

        System.out.println("end");
    }


    //aop测试
    public void save(){
        System.out.println("数据库保存");
    }
    public void read(){
        System.out.println("数据库读取");
    }
}
